package com.dingup.provider.mapper;

import com.dingup.api.model.sys.SysPermissionGroupRole;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface SysPermissionGroupRoleMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(SysPermissionGroupRole record);

    int insertSelective(SysPermissionGroupRole record);

    SysPermissionGroupRole selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(SysPermissionGroupRole record);

    int updateByPrimaryKey(SysPermissionGroupRole record);

    SysPermissionGroupRole selectByRoleIdAndGroupId(@Param("roleId") Integer roleId, @Param("groupId")Integer groupId);


    int deleteByRoleId(Integer roleId);

    List<SysPermissionGroupRole> getByRoleId(Integer roleId);
}